package com.test.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController()
@RequestMapping("/member")
public class MemberController {
    @RequestMapping(method = RequestMethod.GET)
    public List<String> getMemberAll() {
        List<String> listUser = new ArrayList<>();
        listUser.add("zhangsan");
        listUser.add("lisi");
        listUser.add("wangwu");
        return listUser;
    }

    @RequestMapping(value = "/api", method = RequestMethod.GET)
    public String getApi() {
        return "member-api";
    }
}
